package com.gzx.spring.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 通用分值区间表
 * </p>
 *
 * @author qinpeng
 * @since 2025-10-22
 */
@Getter
@Setter
@TableName("bin_interval")
@ApiModel(value = "BinInterval对象", description = "通用分值区间表")
public class BinInterval implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("区间类型：PUYU（璞玉95s_bin）、TIANYU（天御反欺诈V8）")
    @TableField("type")
    private String type;

    @ApiModelProperty("区间左边界（包含）")
    @TableField("min_val")
    private Double minVal;

    @ApiModelProperty("区间右边界（不包含，NULL表示无穷大）")
    @TableField("max_val")
    private Double maxVal;

    @ApiModelProperty("类型内的逻辑顺序")
    @TableField("sort_order")
    private Integer sortOrder;

    @ApiModelProperty("创建时间")
    @TableField("created_time")
    private LocalDateTime createdTime;

    @ApiModelProperty("修改时间")
    @TableField("updated_time")
    private LocalDateTime updatedTime;
}
